# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-levenshtein
pkgver=0.12.0
pkgrel=8
pkgdesc='Python extension for computing string edit distances and similarities.'
url='https://pypi.python.org/pypi/python-Levenshtein/'
license=('GPL')
arch=('x86_64' 'aarch64')
depends=('python2')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/p/python-Levenshtein/python-Levenshtein-$pkgver.tar.gz")
sha512sums=('95df064490970618b003bccbef9071b1a2a3ee4645ac8e851f4205bd4e8123d21ee0ee733adfeec79085faa01ba39902e2a4a26bfb21b70678377579157df4a5')

package() {
  cd "python-Levenshtein-$pkgver"

  python2 setup.py build install -O1 --prefix=/usr --root="$pkgdir"
}

